home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.8 KB | 51 lines | [TEXT/GEOL] |
- Item forwarded by A33 to A34
-
- Item 4545758 29-Nov-89 10:44
-
- From: POWERUP.ENG Power Up Software,PRT
-
- To: MACAPP.TEST MacApp SQA Team
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: DoInitViews()
-
- Gentlepersons,
-
- I am implementing a rather complex dialog that contains, among other things, a
- 'clear' button. The 'clear' button restores the dialog to its initial state —
- the state specified by the view resources that define the dialog. This
- specification includes such information as which controls are enabled, which
- are dimmed, what initial value each has, and so on. I could write a routine
- that set all the controls to hard-coded values, but this is clearly redundant,
- and defeats the advantage of using view resources.
-
- What I need, then, are some Init procedures that complement the DoCreateViews()
- and CreateAView() functions in TEventHandler. Let's call the new procedures
- DoInitViews() and InitAView(). All of the code they need can be taken right
- out of DoCreateViews() and CreateAView(), which can be modified to call the new
- init routines, so there's little code actually added to the system.
-
- As a complement to the global function NewTemplateWindow(), the procedure
- InitTemplateWindow() would take most of its code from NewTemplateWindow(), and
- could (once again) be called by the existing routine.
-
- Wouldn't this be nice?
-
- Looking forward to seeing these routines in a future version of MacApp, I
- remain
-
- Yours,
-
- James Plamondon
- Software Engineer
- PowerUp! Software
- 2929 Campus Drive, Suite 300
- San Mateo, CA 94403
- (415) 345-5900 x351
- AppleLink: PowerUp.Eng
-
- P.S.: In TEvetHandler.CreateAView(), the local variable anEntry:TEntry is
- unused, and should be removed from its VAR list.
-
-